package main

import "fmt"

func main() {
	arr := []float64{7.0, 8.5, 9.1}
	sum := Sum(&arr)
	fmt.Printf("The sum of the array is: %f", sum)
}

func Sum(arr *[]float64) (sum float64) {
	for _, v := range *arr {
		sum += v
	}
	return
}
